package com.qtenv.datasync.service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qtenv.datasync.service.entity.TerminalsXb;
import com.qtenv.datasync.service.mapper.TerminalsXbMapper;
import com.qtenv.datasync.service.service.TerminalsXbService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 小表档案表 服务实现类
 * </p>
 *
 * @author CBL
 * @since 2022-08-02
 */
@Service
public class TerminalsXbServiceImpl extends ServiceImpl<TerminalsXbMapper, TerminalsXb> implements TerminalsXbService {

    @Override
    public Page<TerminalsXb> getZoneMeterList(String pageSize, String page, String tenantId, String areaId) {
        return this.getBaseMapper().selectPage(new Page(Integer.valueOf(page), Integer.valueOf(pageSize)), new QueryWrapper<TerminalsXb>().eq("tenant_id", tenantId).eq("AreaID", areaId).eq("TerminalMark", "1"));
    }
}
